//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_netaddevent.sqf"
#include "x_setup.sqf"

// multiple events per type
__TRACE_1("","_this")
private ["_a", "_ea"];
_a = switch (_this select 0) do {
	case 0: {true}; // all
	case 1: {isServer}; // server only
	case 2: {!isDedicated}; // client only
	case 3: {isDedicated}; // dedicated only
	case 4: {!isServer}; // client only, 2
};
if (_a) then {
	_ea = GVAR(event_holder) getVariable [_this select 1, []];
	_ea set [count _ea, _this select 2];
	GVAR(event_holder) setVariable [_this select 1, _ea];
};